﻿@model List<WebIG.Data.Feed>

<div class="row">
    @foreach (var feed in Model)
    {
        <div class="col-xs-12 col-md-2">
            <div class="photo" rel="@feed.Id">
                @if (ViewData["type"] != null && ViewData["type"].ToString() == "0")
                {
                    <div class="photo-user">
                        <a href="@Url.Action("User","Home", new{feed.User.Id})">@feed.User.FullName</a>
                    </div>
                }
                <div class="photo-wrapper">
                    <a href="@Url.Action("Media", "Home", new { feed.Id })" style="width: 153px; height: 153px; ">
                        <img src="@feed.Images.LowResolution.Url" style="width: 153px; height: 153px;" />
                    </a>
                </div>
                <div class="photo-title">
                    @if (feed.Location != null)
                    {
                        <span class="glyphicon glyphicon-map-marker"></span>
                    }
                    @if (feed.Caption != null)
                    {
                        <span title="@feed.Caption.Text">@feed.Caption.Text</span>
                    }
                </div>
                <div class="photo-mark">
                    <span class="glyphicon glyphicon-heart"></span>&nbsp;@feed.Likes.Count &nbsp;
                    <span class="glyphicon glyphicon-comment"></span>&nbsp;@feed.Comments.Count
                </div>
            </div>
        </div>
    }
</div>
<div style="height: 50px;text-align: center;">
    <button id="btnLoadMore" type="button" class="btn btn-primary"><img src="@Url.Content("~/Image/loading.gif")" style="width:20px;height:20px;display:none;" /> Load More</button>
</div>


